package com.me.example.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 测试控制器
 * </p>
 */
@RestController
@RequestMapping("/test")
public class TestController {


    @GetMapping("/ping/{id}")
    public String ping(@PathVariable String id) {
        String json = "{\n" +
                "  \"fullName\": \"福安区\",\n" +
                "  \"id\": " + id + "\n" +
                "}";
        return json;
    }


}

